<?php
/**
 * This class controls starts the whole site.
 * 
 * @author Jarmo Baltzar
 * @author Vicktor Karlsson
 * 
 * @version 1.0
 */
class StartController {
	
	/**
	 * Method that initiates and calls the starting view.
	 * 
	 * @name DoControll
	 * @return xhtml
	 */
	function DoControll() {
		
		$xhtml = "";
		$title = "Workshop 1";
		$errorMessage = "";
		
		$startView = new StartView ();
		
		$xhtml = $startView->generateStartView ();
		
		$xhtmlBuilder = new XhtmlBuilder ( $xhtml, $startView->GetStyle (), $title, $errorMessage);
		return $xhtmlBuilder;
	}
}
